﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="LAOSalvagePayments.aspx.cs" Inherits="GMAC.ReportingSystem.Paginas.LAOSalvagePayments"  Theme="Theme" EnableTheming="true"
    EnableEventValidation="false"%>

<%@ Register assembly="FrameworkManapro.WebUI" namespace="FrameworkManapro.WebUI" tagprefix="fwm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script type="text/javascript" src="../Scripts/Validations.js"></script>

    <script type="text/javascript" src="../Scripts/CheckFramesAndRedirect.js"></script>

    <script type="text/javascript">
        
        function ExpandPanel() 
        {
            var pnlDetailsExtender = $find("pnlDetailsExtender");
            var pnlSearchExtender  = $find("pnlSearchExtender");
            
            if (pnlDetailsExtender != null) 
            {
                pnlDetailsExtender.expandPanel();
            }
            
            pnlSearchExtender.collapsePanel();
        }
      
    </script>

</head>
<body class="TotalBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    <div class="Contenedor" style = "padding-bottom: 10px; padding-top:10px;">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
            <tr>
                <td style="text-align: left">
                    <span class="FontArialPaddingLeft15 TitleFontBlue FontArialBoldCaps">&nbsp;LAO Salvage Payments</span></td>
            </tr>
            <tr>
                <td align="center">
                    <div class="WindowHeightMain">
                        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr class="SearchBackground" style="width: 100%">
                                <td class="TDBorder">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="padding-left: 10px; text-align: left; width: 100%">
                                                <span class="FontArialBoldCaps" style="font-size: 14px">Search Filter</span>
                                            </td>
                                            <td style="padding-right: 10px; text-align: right">
                                                <asp:ImageButton ID="imgCollapseSearch" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Images IE6/Minus.gif"
                                                    Width="25px" Height="25px" OnClientClick="return false;" runat="server" BorderWidth="0px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Panel ID="pnlSearch" runat="server" SkinID="pnlBusqueda" Height="89px">
                                        <table cellpadding="0" cellspacing="0" border="0" visible="false">
                                            <tr>
                                                <td valign="top">
                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                        <tr style="padding-left: 10px">
                                                            <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                AccountNumber
                                                            </td>
                                                            <td class="TDTextBox">
                                                                <asp:DropDownList ID="ddlAccountNumberSearch" runat="server" SkinID="ddl12px" 
                                                                    TabIndex="14">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr style="padding-left: 10px">
                                                            <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                &nbsp;</td>
                                                            <td class="TDTextBox">
                                                                <asp:ImageButton ID="imgBuscarReg" runat="server" CausesValidation="false" 
                                                                    Height="25px" ImageAlign="Middle" 
                                                                    ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Find.jpg" 
                                                                    OnClick="imgBuscarReg_Click" TabIndex="5" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="TDSeparadorH">
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                                <td id="Botones" style="vertical-align: middle">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <cc1:CollapsiblePanelExtender ID="pnlSearch_Collapse" runat="server" TargetControlID="pnlSearch"
                                        BehaviorID="pnlSearchExtender" CollapsedImage="~/App_Themes/Theme/Images/Images IE6/Plus.gif"
                                        ExpandedImage="~/App_Themes/Theme/Images/Images IE6/Minus.gif" CollapseControlID="imgCollapseSearch"
                                        ExpandControlID="imgCollapseSearch" Collapsed="false" SuppressPostBack="false"
                                        ImageControlID="imgCollapseSearch">
                                    </cc1:CollapsiblePanelExtender>
                                </td>
                            </tr>
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr class="SearchBackground" style="width: 100%">
                                <td class="TDBorder">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td style="padding-left: 10px; text-align: left; width: 100%">
                                                <span class="FontArialBoldCaps" style="font-size: 14px">Edit Fields</span>
                                            </td>
                                            <td style="padding-right: 10px; text-align: right">
                                                <asp:ImageButton ID="imgCollapseEdit" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Images IE6/Minus.gif"
                                                    Width="25px" Height="25px" runat="server" BorderWidth="0px" OnClientClick="return false;"
                                                    TabIndex="6" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:UpdatePanel ID="upDetails" runat="server" UpdateMode="Conditional">
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnModify" EventName="Click" />
                                        </Triggers>
                                        <ContentTemplate>
                                            <asp:Panel ID="pnlEdit" runat="server" SkinID="pnlBusqueda" Height="198px">
                                                <table cellpadding="0" cellspacing="0" border="0" visible="false">
                                                    <tr>
                                                        <td valign="top">
                                                            <table cellpadding="0" cellspacing="0" border="0">
                                                                <tr style="padding-left: 10px">
                                                                    <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                        AccountNumber</td>
                                                                    <td class="TDTextBox">
                                                                          <asp:DropDownList ID="ddlAccountNumber" runat="server" SkinID="ddl12px" TabIndex="14">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvAccountNumber" runat="server" 
                                                                            ControlToValidate="ddlAccountNumber" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvAccountNumber_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvAccountNumber">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        
                                                                        <asp:HiddenField ID="hfID" runat="server" />
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;</td>
                                                                </tr>
                                                                <tr style="padding-left: 10px">
                                                                    <td style="padding-left: 5px" class="LabelRight12px TDLabelBackground">
                                                                        Status
                                                                    </td>
                                                                    <td class="TDTextBox">
                                                                        <asp:DropDownList ID="ddlStatus" runat="server" SkinID="ddl12px" TabIndex="14">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="rfvStatus" runat="server" 
                                                                            ControlToValidate="ddlStatus" Display="Dynamic">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvStatus_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvStatus">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                    </td>
                                                                </tr>
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Payment Date</td>
                                                                    <td class="TDTextBox">
                                                                      <asp:TextBox ID="txtPaymentDate" runat="server" MaxLength="10" SkinID="TextBox12px"
                                                            TextMode="SingleLine" TabIndex="4"></asp:TextBox>
                                                            <cc1:CalendarExtender ID="calendarPaymentDate" runat="server" TargetControlID="txtPaymentDate">
                                                            </cc1:CalendarExtender>
                                                            <cc1:MaskedEditExtender ID="meePaymentDate" runat="server" TargetControlID="txtPaymentDate"
                                                                MaskType="Date" Mask="99/99/9999">
                                                            </cc1:MaskedEditExtender>
                                                           
                                                            <cc1:MaskedEditValidator ID="maskedPaymentDate" runat="server" Display="Dynamic"
                                                                InvalidValueMessage="*" ToolTip="Fecha incorrecta" ControlExtender="meePaymentDate"
                                                                ControlToValidate="txtPaymentDate"></cc1:MaskedEditValidator>
                                                 <cc1:MaskedEditValidator ID="maskedPaymentDate2" runat="server" Display="None" InvalidValueMessage="Invalid Date"
                                                                ToolTip="Fecha incorrecta" ControlExtender="meePaymentDate" ControlToValidate="txtPaymentDate"></cc1:MaskedEditValidator>
                                                            <asp:RangeValidator ID="rvPaymentDate" runat="server" ControlToValidate="txtPaymentDate" 
                                                                MinimumValue="01/01/1900" MaximumValue="06/06/2079" Type="Date"
                                                                ErrorMessage="Date out of valid range">*</asp:RangeValidator>
                                                           
                                                            <cc1:ValidatorCalloutExtender ID="vcePaymentDate2" runat="server" TargetControlID="maskedPaymentDate">
                                                            </cc1:ValidatorCalloutExtender>
                                                            <cc1:ValidatorCalloutExtender ID="vcePaymentDate3" runat="server" TargetControlID="rvPaymentDate">
                                                            </cc1:ValidatorCalloutExtender>   
                                                                         
                                                                      </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td class="TDSeparadorH">
                                                        </td>
                                                        <td>
                                                            <table cellpadding="0" cellspacing="0" border="0">
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                       Capital</td>
                                                                    <td class="TDTextBox">
                                                                         <asp:TextBox ID="txtCapital" runat="server" MaxLength="20" SkinID="TextBox12px" 
                                                                            TabIndex="14"    onkeypress="return ValNumero(event);" ></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvCapital0" runat="server" 
                                                                            ControlToValidate="txtCapital" Display="Dynamic" ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvCapital1" runat="server" 
                                                                            ControlToValidate="txtCapital" Display="Dynamic" InitialValue="0" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvCapital2" runat="server" 
                                                                            ControlToValidate="txtCapital" Display="Dynamic" InitialValue="0.00" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvCapital2_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvCapital2">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvCapital1_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvCapital1">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvCapital0_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvCapital0">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:MaskedEditExtender ID="MaskCapital" runat="server" TargetControlID="txtCapital"
                                                                    MaskType="Number" Mask="999,999.99"   InputDirection="RightToLeft">
                                                                </cc1:MaskedEditExtender>
                                                                <cc1:MaskedEditValidator ID="MaskedEditValidator2" runat="server" Display="None" InvalidValueMessage="Invalid Number"
                                                                    ControlExtender="MaskCapital" ControlToValidate="txtCapital"></cc1:MaskedEditValidator> </td>
                                                                </tr>
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Accrued Interest

                                                                    </td>
                                                                    <td class="TDTextBox">
                                                                        <asp:TextBox ID="txtAccruedInterest" runat="server" MaxLength="20" SkinID="TextBox12px" 
                                                                            TabIndex="14"    onkeypress="return ValNumero(event);" ></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvAccruedInterest0" runat="server" 
                                                                            ControlToValidate="txtAccruedInterest" Display="Dynamic" ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvAccruedInterest1" runat="server" 
                                                                            ControlToValidate="txtAccruedInterest" Display="Dynamic" InitialValue="0" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvAccruedInterest2" runat="server" 
                                                                            ControlToValidate="txtAccruedInterest" Display="Dynamic" InitialValue="0.00" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvAccruedInterest2_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvAccruedInterest2">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvAccruedInterest1_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvAccruedInterest1">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvAccruedInterest0_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvAccruedInterest0">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:MaskedEditExtender ID="MaskAccruedInterest" runat="server" TargetControlID="txtAccruedInterest"
                                                                    MaskType="Number" Mask="999,999.99"   InputDirection="RightToLeft">
                                                                </cc1:MaskedEditExtender>
                                                                <cc1:MaskedEditValidator ID="MaskedEditValidator1" runat="server" Display="None" InvalidValueMessage="Invalid Number"
                                                                    ControlExtender="MaskAccruedInterest" ControlToValidate="txtAccruedInterest"></cc1:MaskedEditValidator> 
                                                                         </td>
                                                                </tr>
                                                                <tr style="padding-left: 10px">
                                                                    <td class="LabelRight12px TDLabelBackground" style="padding-left: 5px">
                                                                        Total Amount&nbsp;
                                                                    </td>
                                                                    <td class="TDTextBox">
                                                                      <asp:TextBox ID="txtTotalAmount" runat="server" MaxLength="20" SkinID="TextBox12px" 
                                                                            TabIndex="14"    onkeypress="return ValNumero(event);" ></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="rfvTotalAmount0" runat="server" 
                                                                            ControlToValidate="txtTotalAmount" Display="Dynamic" ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvTotalAmount1" runat="server" 
                                                                            ControlToValidate="txtTotalAmount" Display="Dynamic" InitialValue="0" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <asp:RequiredFieldValidator ID="rfvTotalAmount2" runat="server" 
                                                                            ControlToValidate="txtTotalAmount" Display="Dynamic" InitialValue="0.00" 
                                                                            ValidationGroup="Save">*</asp:RequiredFieldValidator>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvTotalAmount2_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvTotalAmount2">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvTotalAmount1_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvTotalAmount1">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:ValidatorCalloutExtender ID="rfvTotalAmount0_ValidatorCalloutExtender" 
                                                                            runat="server" TargetControlID="rfvTotalAmount0">
                                                                        </cc1:ValidatorCalloutExtender>
                                                                        <cc1:MaskedEditExtender ID="MaskTotalAmount" runat="server" TargetControlID="txtTotalAmount"
                                                                    MaskType="Number" Mask="999,999.99"   InputDirection="RightToLeft">
                                                                </cc1:MaskedEditExtender>
                                                                <cc1:MaskedEditValidator ID="MaskedEditValidator3" runat="server" Display="None" InvalidValueMessage="Invalid Number"
                                                                    ControlExtender="MaskTotalAmount" ControlToValidate="txtTotalAmount"></cc1:MaskedEditValidator>   </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td id="BotonesEdit" style="vertical-align: middle; width:100%;" align="right" colspan="3">
                                                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Save.jpg"
                                                                OnClick="btnSave_Click" />
                                                            <asp:ImageButton ID="btnNew" runat="server" CausesValidation="true" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_New.jpg"
                                                                OnClick="btnNew_Click" TabIndex="17" />
                                                            <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Cancel.gif"
                                                                OnClick="btnCancel_Click" TabIndex="18" CausesValidation="false" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <cc1:CollapsiblePanelExtender ID="pnlEdit_Collapse" runat="server" TargetControlID="pnlEdit"
                                                BehaviorID="pnlDetailsExtender" CollapsedImage="~/App_Themes/Theme/Images/Images IE6/Plus.gif"
                                                ExpandedImage="~/App_Themes/Theme/Images/Images IE6/Minus.gif" CollapseControlID="imgCollapseEdit"
                                                ExpandControlID="imgCollapseEdit" Collapsed="true" SuppressPostBack="false" ImageControlID="imgCollapseEdit">
                                            </cc1:CollapsiblePanelExtender>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td class="TDSeparadorV" colspan="2">
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: left" colspan="2">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <asp:GridView ID="grvLAOSalvagePayments" runat="server" SkinID="GridGMAC" AutoGenerateColumns="False"
                                                Width="100%" OnRowDataBound="grvLAOSalvagePayments_RowDataBound" DataKeyNames="ID">
                                                <Columns>
                                                    <asp:BoundField HeaderText="Accountnumber" DataField="AccountNumber" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
                                                    <asp:BoundField HeaderText="Status" DataField="PaymentReasonCode" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
                                                    <asp:BoundField HeaderText="Payment Date" DataField="PostGeneralledgerDate"  HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                                    <asp:BoundField HeaderText="Capital" DataField="PaidPrincipalAmount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
                                                    <asp:BoundField HeaderText="Accrued Interest" DataField="PaidInterestAmount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                                    <asp:BoundField HeaderText="Total Amount" DataField="TotalAmount" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                                </Columns>
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </asp:GridView>
                                            <fwm:PagingControl ID="PagingControl" runat="server" 
                                                AllowPageSizeChange="false" OnPageChanged="pagingControl_PageChanged" 
                                                ShowCurrentRecordsLegend="false" />
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="grvLAOSalvagePayments" EventName="SelectedIndexChanged" />
                                            <asp:AsyncPostBackTrigger ControlID="imgBuscarReg" EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right;">
                                    <asp:UpdatePanel ID="upMessageConfirm" runat="server" UpdateMode="Conditional">
                                        <ContentTemplate>
                                            <asp:ImageButton ID="btnModify" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Modify.jpg"
                                                OnClick="btnModify_Click" OnClientClick="ExpandPanel();" CausesValidation="false"
                                                TabIndex="20" />
                                            <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Delete.jpg"
                                                CausesValidation="false" TabIndex="21" OnClick="btnDelete_Click" />
                                            <%--<cc1:ConfirmButtonExtender ID="confirmExtender" runat="server" DisplayModalPopupID="popupExtenderConfirm"
                                                TargetControlID="btnDelete">
                                            </cc1:ConfirmButtonExtender>--%>
                                            <asp:Panel ID="pnlMessageConfirm" runat="server" CssClass="modalPopup" Height="140px"
                                                Style="display: none;" Width="400px">
                                                <table width="100%">
                                                    <tr style="height: 100px">
                                                        <td style="height: 100%;" align="center">
                                                            <uc1:wucMessage ID="wucMessageConfirm" runat="server" MessageType="Information" Message="Are you sure you want to delete the selected user?"
                                                                Visible="true" />
                                                        </td>
                                                    </tr>
                                                    <tr style="vertical-align: bottom">
                                                        <td align="center">
                                                            <asp:ImageButton ID="btnConfirm" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                                                CausesValidation="false" OnClick="btnConfirm_Click" />
                                                            <asp:ImageButton ID="btnCancelConfirm" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Cancel.gif"
                                                                CausesValidation="false" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                            <cc1:ModalPopupExtender ID="popupExtenderConfirm" runat="server" BackgroundCssClass="modalBackground"
                                                DropShadow="false" PopupControlID="pnlMessageConfirm" TargetControlID="lnkConfirm"
                                                CancelControlID="btnCancelConfirm">
                                            </cc1:ModalPopupExtender>
                                            <asp:LinkButton ID="lnkConfirm" runat="server"></asp:LinkButton>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <asp:UpdatePanel ID="upMessage" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
        </Triggers>
        <ContentTemplate>
            <asp:Panel ID="pnlMessage" runat="server" CssClass="modalPopup" Height="140px" Style="display: none;"
                Width="400px">
                <table width="100%">
                    <tr style="height: 100px">
                        <td style="height: 100%" align="center">
                            <uc1:wucMessage ID="wucMessage" runat="server" />
                        </td>
                    </tr>
                    <tr style="vertical-align: bottom">
                        <td align="center">
                            <asp:ImageButton ID="btnAccept" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="popupExtenderMessage" runat="server" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="pnlMessage" TargetControlID="lnkPopupMessage"
                CancelControlID="btnAccept">
            </cc1:ModalPopupExtender>
            <asp:LinkButton ID="lnkPopupMessage" runat="server"></asp:LinkButton>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
